//
// Created by 27819 on 24-11-1.
//

#include "logical_nonce.h"
#include <opencv2/opencv.hpp>
int logical_nonce(const char* input_img)
{
    cv::Mat img = cv::imread(input_img, 0);
    if (img.empty())
    {
        return -1;
    }
    cv::Mat output;
    cv::bitwise_not(img, output);
    cv::imshow("output", output);
    cv::waitKey(0);
    cv::destroyAllWindows();
    return 0;
}